package acm;

import java.util.Scanner;

public class a222 {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int num = in.nextInt();
        String str="";
        System.out.print(load(num,str));
    }
    public static String load(int num,String str){
        int project=1,n=0;
        if (num==1){
            return "2(0)";
        }
        else if (num==2){
            return "2";
        }
        while (project*2<=num){
            project=project*2;
            n++;
        }
        if (num-project!=0){
            int diff=num-project;
            str= "2("+load(n,str)+")+"+load(diff,str);
        }
        else {
            str= "2("+load(n,str)+")";
        }
        str=str.replace("2(2(0))","2");
        return str;
    }
}
